<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTimeMessagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('time_messages', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->default('');
            $table->text('description')->nullable();
            $table->string('time')->nullable();
            $table->integer('remind_type')->default('0')->nullable();
            $table->string('reminder_time')->nullable();
            $table->string('url')->nullable();
            $table->integer('status')->default('0');
            $table->integer('creator_id')->default('0');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('time_messages');
    }
}
